<?php session_start();

print('<?xml version="1.0" encoding="utf-8"?>')
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<!--
<meta http-equiv="content-style-type" content="text/css; charset=UTF-8" />
<meta http-equiv="content-script-type" content="text/javascript; charset=UTF-8" />
-->

<title>GadgetFreak</title>

<link rel="stylesheet" type="text/css" href="GadgetFreak.css" />
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery-ui.min.js"></script>
<script type="text/javascript" src="gadget-freak.js"></script>

</head>
<body>
    <div class="header">
        <h1 class="main_title">GadgetFreak</h1>
    </div>

    <div class="wrapper">
        <?php	

        if(!isset($_SESSION['SID']))					// èe ni seje se includa prijavo
        {
            include 'prijava.php';
        }
        else												// èe SESSION obstaja se vkljuè glavno stran[main.php] --> tuki bo treba še za varnost se pozanimat
        {
            include 'main.php';
        }

        ?>



        <div id="dialog_registration" title="Registracija">
            <form id="form_registration" action="register.php" method="post">
                <p>
                    <label>Uporabniško ime<br /> <input type="text" name="uuime" id="registration_username" size="30"
                        maxlength="60" onblur="checkUsername()" />
                    </label> <span id="format_err_username">Neveljaven format.</span><br /> <label>Ime<br /> <input
                        type="text" name="uime" id="name" size="30" maxlength="60" onblur="checkName()" />
                    </label> <span id="format_err_name">Neveljaven format.</span><br /> <label>Priimek<br /> <input
                        type="text" name="upriimek" id="surname" size="30" maxlength="60" onblur="checkSurname()" />
                    </label> <span id="format_err_surname">Neveljaven format.</span><br /> <label>Email<br /> <input
                        type="text" name="uemail" id="registration_email" size="30" maxlength="60"
                        onblur="checkRegistrationEmail()" />
                    </label> <span id="format_err_registration_email">Neveljaven format.</span><br /> <label>Email
                        (ponovno)<br /> <input type="text" name="ureemail" id="registration_email_repeated" size="30"
                        maxlength="60" />
                    </label><br /> <label>Geslo<br /> <input type="password" name="ugeslo" id="registration_password"
                        size="30" maxlength="50" onblur="checkRegistrationPassword()" />
                    </label> <span id="format_err_registration_password">Napaka (vsaj 4 alfanumericni znaki).</span><br />
                    <label>Geslo (ponovno)<br /> <input type="password" name="uregeslo"
                        id="registration_password_repeated" size="30" maxlength="50" />
                    </label><br /> <span id="registration_format_err">Manjkajoči ali neujemajoči podatki!</span><br />
                </p>
            </form>
        </div>

    </div>

    <div class="footer">Copyright © 2011 FRI SP-S15</div>
</body>
</html>
